package com.grass;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>类名称：PrintController
 * <p>描述说明：测试类
 * <p>版本号：2.0.0.0
 *
 * @author Alpho@方大侠
 * @date 2019/3/26 17:52
 */
@RestController
@RequestMapping("/prints")
public class PrintController {

    @GetMapping
    public String sayHello(){
        return "Hello,Eureka-Server!";
    }

    @GetMapping("/hystrixs")
    public String showHystrix() throws InterruptedException {
        Thread.sleep(5000L);
        return "服务降级！";
    }
}
